.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.guide-header {
    text-align: center;
    margin-bottom: 3rem;
}

.guide-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.guide-header p {
    color: #666;
    font-size: 1.1rem;
}

.guide-section {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin-bottom: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.guide-section:nth-child(even) {
    background-color: #ffffff;
}

.guide-section h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}
 /* 模态窗口样式 */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            overflow: auto;
        }

        .modal-content {
            position: relative;
            background-color: #fff;
            margin: 10% auto;
            padding: 30px;
            width: 80%;
            max-width: 600px;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            animation: modalFadeIn 0.3s;
        }

        .close-button {
            position: absolute;
            top: 15px;
            right: 20px;
            color: #aaa;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.2s;
        }

        .close-button:hover {
            color: #333;
        }

        @keyframes modalFadeIn {
            from {opacity: 0; transform: translateY(-20px);}
            to {opacity: 1; transform: translateY(0);}
        }
        /* 新的模态窗口样式 */
        .user-modal-content {
            background: linear-gradient(145deg, #ffffff, #f5f7ff);
            border-radius: 20px;
            padding: 30px;
            max-width: 400px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            border: none;
        }

        .user-profile-header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
        }

        .user-avatar {
            width: 100px;
            height: 100px;
            margin: 0 auto 15px;
            border-radius: 50%;
            overflow: hidden;
            border: 4px solid #3454d1;
            box-shadow: 0 5px 15px rgba(52, 84, 209, 0.2);
        }

        .user-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .user-details {
            padding: 0 10px;
        }

        .detail-item {
            display: flex;
            align-items: center;
            margin: 20px 0;
            padding: 15px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s ease;
        }

        .detail-item:hover {
            transform: translateX(5px);
        }

        .detail-icon {
            width: 40px;
            height: 40px;
            background: #f0f4ff;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: #3454d1;
            font-size: 1.2em;
        }

        .detail-info {
            flex: 1;
        }

        .detail-info label {
            display: block;
            font-size: 0.9em;
            color: #666;
            margin-bottom: 4px;
        }

        .detail-info span {
            display: block;
            color: #333;
            font-size: 1.1em;
            font-weight: 500;
        }

        .close-button {
            position: absolute;
            right: 20px;
            top: 20px;
            font-size: 24px;
            color: #666;
            cursor: pointer;
            transition: color 0.2s ease;
        }

        .close-button:hover {
            color: #3454d1;
        }

        /* 添加动画效果 */
        @keyframes slideIn {
            from {
                transform: translateY(-20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-content {
            animation: slideIn 0.3s ease-out;
        }

        /* 退出按钮样式 */
        .logout-section {
            margin-top: 30px;
            text-align: center;
            padding-top: 20px;
            border-top: 2px solid #f0f0f0;
        }

        .logout-btn {
            background-color: #ff4d4f;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1em;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 0 auto;
            transition: all 0.3s ease;
        }

        .logout-btn:hover {
            background-color: #ff7875;
            transform: translateY(-2px);
            box-shadow: 0 2px 8px rgba(255, 77, 79, 0.2);
        }

        .logout-btn i {
            font-size: 1.1em;
        }

        /* 消息提示样式 */
        .message-toast {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(-100%);
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            z-index: 2000;
            transition: transform 0.3s ease;
        }

        .message-toast.show {
            transform: translateX(-50%) translateY(0);
        }

        /* Hero Section 样式 */
        .hero-title {
            font-size: 3.5em;
            line-height: 1.2;
            margin-bottom: 20px;
        }

        .main-title {
            white-space: nowrap;  /* 防止文字换行 */
            display: block;  /* 确保标题独占一行 */
        }

        .highlight {
            display: block;
            color: #3454d1;
            font-size: 0.7em;
            margin-top: 10px;  /* 增加与主标题的间距 */
        }

        .hero-description {
            font-size: 1.2em;
            line-height: 1.6;
            color: #666;
            margin-bottom: 30px;
        }

        .desc-line {
            display: block;
            white-space: nowrap;  /* 防止文字换行 */
            margin-bottom: 10px;  /* 两行之间的间距 */
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            margin-top: 40px;
        }

        .primary-btn, .secondary-btn {
            padding: 15px 30px;
            border-radius: 30px;
            font-size: 1.1em;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
        }

        .primary-btn {
            background: #3454d1;
            color: white;
            border: none;
        }

        .secondary-btn {
            background: white;
            color: #3454d1;
            border: 2px solid #3454d1;
        }

        .floating-elements {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .float-item {
            position: absolute;
            background: white;
            padding: 15px 25px;
            border-radius: 20px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            display: flex;
            align-items: center;
            gap: 10px;
            animation: float 3s ease-in-out infinite;
            animation-delay: var(--delay);
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }
/* 添加旋转动画 */
.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

/* 下拉菜单项悬停效果 */
.dropdown div:hover {
  background-color: #f9fafb;
}

/* 确保下拉菜单在顶层 */
.dropdown {
  z-index: 50;
}
.chart-container {
    width: 100%;
    height: 450px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#scoreChart {
    width: 100%;
    height: 400px;
    min-height: 400px;
}
  .flag-icon {

    display: inline-block !important; /* 强制显示 */
    width: 16px;
    height: 12px;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .flag-icon.standard {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12"><rect width="16" height="12" fill="%23de2910"/><path d="M2.4,1.2L1,2.6l1.4,1.4L1,5.4l1.4,1.4L1,8.2l1.4,1.4L1,11l1.4,1.4" stroke="%23ffde00" stroke-width="0.6" fill="none"/><path d="M4.2,4l-1.8,0.6L4.2,5.2L3.6,7L5,5.8L6.4,7L5.8,5.2L7.6,4.6L5.8,4L6.4,2.2L5,3.4L3.6,2.2L4.2,4z" fill="%23ffde00"/></svg>');
  }
  .flag-icon.cn { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12"><rect width="16" height="12" fill="%23de2910"/><path d="M2.4,1.2L1,2.6l1.4,1.4L1,5.4l1.4,1.4L1,8.2l1.4,1.4L1,11l1.4,1.4" stroke="%23ffde00" stroke-width="0.6" fill="none"/><path d="M4.2,4l-1.8,0.6L4.2,5.2L3.6,7L5,5.8L6.4,7L5.8,5.2L7.6,4.6L5.8,4L6.4,2.2L5,3.4L3.6,2.2L4.2,4z" fill="%23ffde00"/></svg>'); }
  .flag-icon.fr { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12"><rect width="5.33" height="12" x="0" fill="%230052a7"/><rect width="5.33" height="12" x="5.33" fill="%23fff"/><rect width="5.33" height="12" x="10.67" fill="%23d52b1e"/></svg>'); }
  .flag-icon.ru { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12"><rect width="16" height="4" y="0" fill="%23fff"/><rect width="16" height="4" y="4" fill="%230039a6"/><rect width="16" height="4" y="8" fill="%23d52b1e"/></svg>'); }
  .flag-icon.es { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12"><rect width="16" height="12" fill="%23aa151b"/><rect width="16" height="6" y="3" fill="%23f1bf00"/></svg>'); }
  .flag-icon.jp { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12"><rect width="16" height="12" fill="%23fff"/><circle cx="8" cy="6" r="3" fill="%23bc002d"/></svg>'); }
 /* 修正后的英国国旗（完全转义版） */
/* 更新后的英国国旗样式（完美匹配图片中的尺寸和风格） */
.flag-icon.en {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12"><rect width="16" height="12" fill="%23012169"/><path d="M0 0l16 12m0-12L0 12" stroke="%23fff" stroke-width="2" fill="none"/><path d="M8 0v12M0 6h16" stroke="%23fff" stroke-width="3" fill="none"/><path d="M0 0l16 12m0-12L0 12" stroke="%23C8102E" stroke-width="1" fill="none"/><path d="M8 0v12M0 6h16" stroke="%23C8102E" stroke-width="1.5" fill="none"/></svg>');
}

  .dropdown {
    max-height: 300px;
    overflow-y: auto;
  }
/* 优秀句子和建议样式 */
.sentence-list li, .suggestion-list li {
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.sentence-list li:hover {
    background-color: #f0fdf4;
    transform: translateX(5px);
}

.suggestion-list li:hover {
    background-color: #eff6ff;
    transform: translateX(5px);
}

/* 评分卡片悬停效果 */
#scoreContainer > div {
    transition: all 0.3s ease;
}

#scoreContainer > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);

.error-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background-color: #ff4d4f;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 2000;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.error-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* 评分卡片动画效果 */
@keyframes scoreAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#scoreContainer > div {
    animation: scoreAppear 0.5s ease-out forwards;
}

#scoreContainer > div:nth-child(1) { animation-delay: 0.1s; }
#scoreContainer > div:nth-child(2) { animation-delay: 0.2s; }
#scoreContainer > div:nth-child(3) { animation-delay: 0.3s; }
#scoreContainer > div:nth-child(4) { animation-delay: 0.4s; }
#scoreContainer > div:nth-child(5) { animation-delay: 0.5s; }

/* 优秀句子和建议样式 */
.sentence-list li, .suggestion-list li {
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.sentence-list li:hover {
    background-color: #f0fdf4;
    transform: translateX(5px);
}

.suggestion-list li:hover {
    background-color: #eff6ff;
    transform: translateX(5px);
}

/* 评分卡片悬停效果 */
#scoreContainer > div {
    transition: all 0.3s ease;
}

#scoreContainer > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.essay-list-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.essay-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.essay-item:hover {
    background-color: #f8f8f8;
}

.essay-title {
    flex: 1;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.essay-date {
    font-size: 12px;
    color: #999;
    min-width: 80px;
    text-align: right;
}

.loading-state {
    text-align: center;
    padding: 30px;
    color: #666;
}
/* 添加到您的CSS中 */
.scoring-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scoring-progress-enter {
    opacity: 0;
    transform: translateY(20px);
}

.scoring-progress-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.scoring-progress-exit {
    opacity: 1;
    transform: translateY(0);
}

.scoring-progress-exit-active {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.flag-icon.en {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 12"><rect width="16" height="12" fill="%23012169"/><path d="M0 0l16 12m0-12L0 12" stroke="%23fff" stroke-width="2"/><path d="M8 0v12M0 6h16" stroke="%23fff" stroke-width="3"/><path d="M0 0l16 12m0-12L0 12" stroke="%23C8102E" stroke-width="1"/><path d="M8 0v12M0 6h16" stroke="%23C8102E" stroke-width="1.5"/></svg>');
  background-size: contain;
  display: inline-block;
  width: 1.2em;
  height: 0.9em;
  margin-right: 0.3em;
  vertical-align: middle;
}
/* 优秀句子样式 */
.sentence-item {
    border-left: 3px solid #10B981; /* 绿色边框 */
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.sentence-quote {
    font-style: italic;
    color: #374151; /* 深灰色 */
    background-color: #F0FDF4; /* 浅绿色背景 */
    padding: 0.75rem;
    border-radius: 0.375rem;
    position: relative;
}

.sentence-quote::before {
    content: '"';
    color: #10B981;
    font-size: 1.5em;
    position: absolute;
    left: -0.5rem;
    top: -0.5rem;
}

.sentence-reason {
    color: #6B7280; /* 中灰色 */
    background-color: #ECFDF5; /* 更浅的绿色 */
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* 无内容提示样式 */
.no-sentence {
    color: #9CA3AF;
    font-style: italic;
}